import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import axios from 'axios'

// import 'dayjs/locale/zh-cn'
// import locale from 'element-plus/lib/locale/lang/zh-cn'

import * as echarts from 'echarts'

import '@/assets/css/global.css'
// axios.defaults.baseURL = 'http://172.22.213.231:5000/';
// axios.defaults.baseURL = 'http://uchiha.vip:5000/';
axios.defaults.baseURL = '/api';

// const request = axios.create({
//     baseURL: "/api",
//     timeout: 5000
// })
// export default request
const app = createApp(App)
    .use(store)
    .use(router)
    .use(ElementPlus, {size: 'small' })
    .mount('#app')
app.echarts = echarts
